<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>新建OR编辑</title>
  <link href="http://cdn.bootcss.com/meyer-reset/2.0/reset.min.css" rel="stylesheet">
  <link rel="stylesheet" href="/css/syntax.css">
  <link rel="stylesheet" href="/css/common.css">
  <style>
    .layout-error{
      color: #FF7300;
      font-size: 14px;
      line-height: 20px;
      background: #fff;
      padding: 10px;
    }
    .layout-content{
      background: #f1f1f1;
      margin-top: 40px;
      padding: 0px;
    }
    .layout-content textarea:focus,
    .layout-content input:focus{
      outline:1px solid #316ccb;
    }
    .layout-content textarea,
    .layout-content input{
      display: block;
      padding: 10px 20px;
      width: 100%;
      box-sizing: border-box;
      border:none;
      margin-top: 10px;
    }
    .layout-content input[type=submit]{
      background: #316ccb;
      color: #fff;
      cursor: pointer;
    }
  </style>
</head>
<body>
  <script>
  var point = 100/414;
  var width = window.innerWidth;
  width = Math.min(500,width);
  var size = point * width;
  var ehtml = document.querySelector("html");
  ehtml.setAttribute("style","font-size:"+size+"px");
  </script>
  {% if hasError %}
  <div class="layout-error">{{hasError}}</div>
  {% endif %}
  <div class="layout-content">
    <form class="" action="" method="post">
      <input type="text" name="pathid" value="{{body.pathid}}" placeholder="唯一标识 不能包含/">
      <input type="text" name="title" value="{{body.title}}" placeholder="标题">
      <input type="text" name="banner" value="{{body.banner}}" placeholder="banner">
      <input type="text" name="tag" value="{{body.tag}}" placeholder="便签 最多三个以空格隔开">
      <textarea  rows="8" cols="80" placeholder="内容" name="content">{{body.content}}</textarea>
      <input type="password" name="password"  placeholder="密码">
      <input type="submit" value="保存">
    </form>
  </div>
  <div class="layout-bottom">
    Copyright (c) 2017 第七页
  </div>
  <div style="position:absolute;top:-1000px;">
    <input type="text" id="copy">
  </div>
</body>
</html>
